<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>商品管理 - 分类排序</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
<link rel="stylesheet" type="text/css" href="/style/assets/plugins/jquery-nestable/jquery.nestable.css" />
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 分类排序 </h3>
        <ul class="page-breadcrumb breadcrumb">
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 文章管理 <i class="icon-angle-right"></i> </li>
          <li> <a href="/article/classlist">文章分类</a> <i class="icon-angle-right"></i> </li>
          <li>分类排序</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->
    <form method="post" action="classdo">
    <input type="hidden" name="act" value="sort">
    <div class="row">
      <div class="col-md-12">
        <input id="nestable_list_1_output" name="value" type="hidden">       
      </div>
    </div>
    <div class="row">
      <div class="col-md-6">
        <div class="portlet box blue">
          <div class="portlet-title">
            <div class="caption"><i class="icon-reorder"></i>分类列表</div>            
          </div>
          <div class="portlet-body ">
            <div class="dd" id="nestable_list_1">
              <ol class="dd-list">
              <?php
			  if($this->data){
				  foreach($this->data as $r){
					  ?>
                <li class="dd-item" data-id="<?=$r['caid'];?>">
                  <div class="dd-handle"><?=$r['name'];?></div>
                </li>   
                <?
				  }
			  }
			  ?>
              </ol>
            </div>
             <div class="form-actions">
                <input type="submit" class="btn blue"  value="提 交">
              </div>
          </div>
        </div>
      </div>
    </div>
    </form>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>
<!-- BEGIN PAGE LEVEL SCRIPTS --> 
<script src="/style/assets/plugins/jquery-nestable/jquery.nestable.js"></script> 
<!-- END PAGE LEVEL SCRIPTS --> 
<script src="/style/assets/scripts/ui-nestable.js"></script> 
<script>
jQuery(document).ready(function() {    
   App.init();
   UINestable.init();
});	
</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>